<template>
  <div id="app">
    <keep-alive :include="cachedViews">
      <router-view :key="key" />
    </keep-alive>
  </div>
</template>
<script>
export default {
  name: 'App',
  mounted() {
  },
  methods: {},
  computed: {
    cachedViews() {
      return this.$store.state.generalState.cachedViews
    },
    key() {
      return this.$route.path
    }
  }
}
</script>
<style lang="scss">

</style>
